package com.liy.framework.common.starter;

import org.springframework.boot.autoconfigure.*;
import org.mybatis.spring.mapper.*;
import org.springframework.context.annotation.*;

@Configuration
@AutoConfigureAfter({ MyBatisAutoConfiguration.class })
public class MyBatisMapperScannerConfig
{
    @Bean
    public MapperScannerConfigurer mapperScannerConfigurer() {
        final MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
        return mapperScannerConfigurer;
    }
}
